package com.gz.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gz.seckill.pojo.User;
import com.gz.seckill.vo.LoginVo;
import com.gz.seckill.vo.RespBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService extends IService<User>{

    //完成用户登录校验
    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    User getUserByCookie(String userTicket,HttpServletRequest request,HttpServletResponse response);

    //更新密码
    RespBean updatePassword(String userTicket,String password,HttpServletRequest request,HttpServletResponse response);
}
